# encoding: utf-8

String.class_eval do
  def fuzzify
    fuzzy_string = String.new(self)
    {
    "á" => "a",
    "â" => "a",
    "č" => "c",
    "đ" => "d",
    "g" => "g",
    "ǥ" => "g",
    "ğ" => "g",
    "ǩ" => "k",
    "ŋ" => "n",
    "õ" => "o",
    "š" => "s",
    "ŧ" => "t",
    "ž" => "z",
    "ʒ" => "z",
    "ǯ" => "z"
    }.each do |k,v|
      fuzzy_string.gsub!(k, v)
    end
    return fuzzy_string.downcase
  end
end